<template>
  <v-listComponents :model="model" :query="query"></v-listComponents>
</template>

<script>
  import listComponents from '@/components/ListComponents/index'
  import { modelMap, queryMap } from '@/router/page-model'

  export default {
    data() {
      return {
        query: {},
        model: {}
      }
    },
    components: {
      'v-listComponents': listComponents
    },
    created() {
      var path = this.$route.path
      path = path.substring(0, path.lastIndexOf('/'))
      this.model = modelMap[path].model
      this.query = queryMap[path].query
    }
  }
</script>
